package com.qumitech.visualnovel.pubdef.pubenum;

/**
 * @Auther: jlyin
 * @Date: 2018/9/19 15:23
 * @Description:
 */
public enum GlasResultEnum {
    // 通用
    SUCCESS(0,"OK"),
    INTERMAL_ERROR(1,"内部错误"),
    ACCOUNT_NOT_EXIST(4,"账号错误"),
    TOKEN_CHECK(1,"内部错误"),
   /* INTERMAL_ERROR(1,"内部错误"),

    INTERMAL_ERROR(1,"内部错误"),
    INTERMAL_ERROR(1,"内部错误"),
    INTERMAL_ERROR(1,"内部错误"),
    INTERMAL_ERROR(1,"内部错误"),
    INTERMAL_ERROR(1,"内部错误"),
    INTERMAL_ERROR(1,"内部错误"),
    INTERMAL_ERROR(1,"内部错误"),
    INTERMAL_ERROR(1,"内部错误"),
    INTERMAL_ERROR(1,"内部错误")*/;

    /*Glas_CommonSuccess		int32     	= 0		// 成功
    Glas_InternalError		int32       = 1		//内部错误
    Glas_AccountNotExist	int32 		= 4		// 账号错误
    Glas_TokenCheckFailed	int32    	= 6		// 密码错误
    Glas_AccountBanned 		int32		= 15	//封号
    Glas_DeviceBindTooMuch  int32 	 	= 17	//当前设备绑定帐号过多
    Glas_AppIdError			int32		= 18	//没有appid
    Glas_SecretkeyError		int32		= 19	//私钥不对
    Glas_ThirdRegisterError	int32		= 20	//第三方注册失败
    Glas_ThirdCheckInError 	int32		= 21	// 第三方带入失败
    Glas_ThirdCheckOutError int32		= 22	// 第三方带出失败
    Glas_Match_Not_Exist 	int32		= 101 	// 比赛不存在
    Glas_Can_Not_Apply	 	int32		= 102	// 不能报名
    Glas_Can_Not_Delay_Apply int32		= 103	//不能延时报名
    Glas_Player_Num_Full	int32		= 104	//人数已满
    Glas_Is_Applyer			int32 		= 106	//已报名
    Glas_IsNot_Applyer		int32		= 107 	// 未报名
    Glas_Can_Not_Quit		int32		= 109 	// 不能退赛*/

    private int result;

    private String msg;

    GlasResultEnum(int result, String msg) {
        this.result = result;
        this.msg = msg;
    }

    public int getState() {
        return result;
    }

    public String getMsg() {
        return msg;
    }


}
